%compare results

%DATResults = [
%   'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005.xml   ';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_15.xml';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis.xml   ';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_15.xml';
%    ];

DATResultsSeq1 = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_15_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_15_fa020.xml';
    ];

DATResultsHighRes1 = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_19_005_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_19_005_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_19_005_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_19_005_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_19_005_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_19_005_15_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_Thesis_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_Thesis_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_Thesis_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_Thesis_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_Thesis_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes1_Thesis_15_fa020.xml';
    ];

DATResultsHighRes2 = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_19_005_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_19_005_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_19_005_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_19_005_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_19_005_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_19_005_15_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_Thesis_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_Thesis_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_Thesis_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_Thesis_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_Thesis_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_HighRes2_Thesis_15_fa020.xml';
    ];

DATResultsPerfect = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Seq1_Perfect_10.xml    ';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Seq1_Perfect_15.xml    ';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes1_Perfect_10.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes1_Perfect_15.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes2_Perfect_10.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes2_Perfect_15.xml';
    ];

%ATA = zeros(12,3);
%ATA_ST = zeros(12,3);
%ATA_BT = zeros(12,3);
%SFDA = zeros(12,3);
%SFDA_ST = zeros(12,3);
%SFDA_BT = zeros(12,3);
%meanStability = zeros(12,3);

ATA_P = zeros(2,3);
ATA_ST_P = zeros(2,3);
ATA_BT_P = zeros(2,3);
SFDA_P = zeros(2,3);
SFDA_ST_P = zeros(2,3);
SFDA_BT_P = zeros(2,3);
meanStability_P = zeros(2,3);

for i=1:2
    [SFDA_P(i,1) SFDA_ST_P(i,1) SFDA_BT_P(i,1) ATA_P(i,1) ATA_ST_P(i,1) ATA_BT_P(i,1) meanStability_P(i,1)] = compareData('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTSeq1.xml', DATResultsPerfect(i,:) , 0, 1);
    [SFDA_P(i,2) SFDA_ST_P(i,2) SFDA_BT_P(i,2) ATA_P(i,2) ATA_ST_P(i,2) ATA_BT_P(i,2) meanStability_P(i,2)] = compareData('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes1.xml', DATResultsPerfect(i+2,:) , 0, 1);
    [SFDA_P(i,3) SFDA_ST_P(i,3) SFDA_BT_P(i,3) ATA_P(i,3) ATA_ST_P(i,3) ATA_BT_P(i,3) meanStability_P(i,3)] = compareData('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes2.xml', DATResultsPerfect(i+4,:) , 0, 1);
end

%for i=7:10
%    [SFDA(i,1) SFDA_ST(i,1) SFDA_BT(i,1) ATA(i,1) ATA_ST(i,1) ATA_BT(i,1) meanStability(i,1)] = compareData('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTSeq1.xml', DATResultsSeq1(i,:) , 0, 1);
%    [SFDA(i,2) SFDA_ST(i,2) SFDA_BT(i,2) ATA(i,2) ATA_ST(i,2) ATA_BT(i,2) meanStability(i,2)] = compareData('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes1.xml', DATResultsHighRes1(i,:) , 0, 1);
%    [SFDA(i,3) SFDA_ST(i,3) SFDA_BT(i,3) ATA(i,3) ATA_ST(i,3) ATA_BT(i,3) meanStability(i,3)] = compareData('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes2.xml', DATResultsHighRes2(i,:) , 0, 1);
%end

%save('perfectResults.mat','SFDA_P', 'SFDA_ST_P', 'SFDA_BT_P', 'ATA_P', 'ATA_ST_P', 'ATA_BT_P', 'meanStability_P');
%save('finalResultsThesis.mat','SFDA', 'SFDA_ST', 'SFDA_BT', 'ATA', 'ATA_ST', 'ATA_BT', 'meanStability');